package com.juku2024.juku.tools

object AnalysisConstants {



    /**
     * 统计app启动的一些配置参数
     */
    const val EVENT_APP = "event_app"
    /** 所有广告请求次数 */
    const val KEY_START_NETWORK = "network"
    /** 运营商 */
    const val KEY_OPERATOR_TYPE = "operator_type"
    /** 使用VPN */
    const val KEY_USER_VPN = "user_vpn"
    /** 手机当前语言 */
    const val KEY_LANGUAGE = "language"
    /** 是否支持google服务 */
    const val KEY_SUPPORT_GOOGLE = "support_google"
    /** 是否支持facebook服务 */
    const val KEY_SUPPORT_FB = "support_fb"


    /**
     * 解锁剧集
     */
    const val EVENT_UNLOCK_EPISODE = "event_unlock_episode"
    const val KEY_UNLOCK_EPISODE_CLICK = "click"


    /**
     * 统计视频源的解析
     */
    const val EVENT_SOURCE = "source"
    // success / fail
    const val KEY_SOURCE_TIMES = "times"
    const val KEY_SOURCE_RESULT = "result"
    const val KEY_SOURCE_DURATION = "duration"
    const val KEY_SOURCE_ERROR = "error"

    const val KEY_SOURCE_REQUEST_TIME = "requests"
    const val KEY_SOURCE_ALL_SOURCE_ERROR = "all_source_error"


    /**
     * 统计定位
     */
    const val EVENT_POSITIONING = "positioning"
    const val KEY_CITY = "city"
    const val KEY_COUNTRY = "countryCode"
    const val KEY_ADCODE = "adCode"
    const val KEY_ERROR_CODE = "code"
    const val KEY_ALLOW_PERMISSION = "permission"
    const val KEY_GPS_OPEN = "GPS"
    const val KEY_COUNTRY_CODE = "country_code"


    /**
     * 统计列表出错
     */
    const val EVENT_CATEGORY_ERROR = "event_list_index_error"




    /**
     * 统计升级
     */
    const val EVENT_UPGRADE = "upgrade"
    const val KEY_NET_VERSION = "net_app_ver"
    const val KEY_NEED_UPGRADE = "is_upgrade"
    const val KEY_UPGRADE_CONTENT = "needUpgradeAndGetContent"
    const val KEY_UPGRADE_WINDOW_DISPLAY = "upgrade_window_display"
    /** 用户对更新的选择 */
    const val KEY_USER_SELECT = "user_select"
    const val KEY_BASE_UPGRADE = "global_upgrade"



    /**
     * 统计升级
     */
    const val EVENT_UPGRADE_V2 = "upgrade_v2"
    /**
     * 统计升级的状态
     * 例子：影视模式，非受限，线上版本号:999，本地版本号:20，需要升级，升级接口正常
     */
    const val KEY_UPDATE_V2_STATUS = "update_v2_status"

    /**
     * 显示弹窗的位置
     */
    const val KEY_SHOW_DIALOG = "show_dialog"
    /**
     * 显示弹窗的次数
     */
    const val KEY_SHOW_DIALOG_TIMES = "show_dialog_times"
    /**
     * 是否强制升级
     *     普通升级
     *     强制升级
     */
    const val KEY_UPDATE_FORCE = "update_force"
    /**
     * 用户对升级的选择，升级或取消
     *      升级-GooglePlay
     *      取消
     *      升级-下载Apk
     */
    const val KEY_UPDATE_USER_ACTION = "update_user_action"

    /**
     * 页面升级方式
     */
    const val KEY_UPDATE_ACTIVITY_STATUS = "update_activity_status"
}
